<!DOCTYPE html>
<html>
<head lang="en">
  <meta charset="UTF-8">
  <title></title>
</head>
<body>
<br><br><br><br><br><br><br><br>
<div >1F  家用电器</div>
<div id="f2">2F  化妆用品</div>
<div >3F  童婴用品</div>
<br><br><br><br><br><br><br><br>

<script src="js/jquery-1.11.3.js"></script>
<script>
  console.log(  $(window).width()   )
  console.log(  $(window).height()   )
  console.log(  $('#f2').offset().left  )
  console.log(  $('#f2').offset().top  )
</script>
</body>
</html>